package com.example.fooservice;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * TODO
 *
 * @author zhangjun3
 * @date 2022/3/4 22:57
 */
@RestController()
public class UserController {

    @GetMapping("/user/{id}")
    public String getUserById(@PathVariable("id") String id) {
        return String.format("id: %s, name: %s", id, "userController");
    }
}
